﻿using HardcoreGame.Content.Items.Consumables.Drinks.Waters;
using Terraria;
using Terraria.Localization;
using Terraria.ModLoader;

namespace HardcoreGame.Common.Systems
{
    public class RecipeGroupsSystem : ModSystem
    {
        public static RecipeGroup WaterMug;
        public static RecipeGroup Fish;
        public override void Unload()
        {
            WaterMug = null;
            Fish = null;
        }
        public override void AddRecipeGroups()
        {
            WaterMug = new RecipeGroup(() =>
            $"{Language.GetTextValue("LegacyMisc.37")} " + $"{Lang.GetItemNameValue(ModContent.ItemType<WaterMug>())}",
                ModContent.ItemType<WaterMug>(),
                ModContent.ItemType<RainwaterMug>(),
                ModContent.ItemType<CorruptRainwaterMug>(),
               ModContent.ItemType<CrimsonRainwaterMug>(),
               ModContent.ItemType<HallowRainwaterMug>(),
               ModContent.ItemType<CorruptionWaterMug>(),
               ModContent.ItemType<CrimsonWaterMug>(),
               ModContent.ItemType<HallowWaterMug>(),
               ModContent.ItemType<IceWaterMug>());
            RecipeGroup.RegisterGroup("HardcoreGame:WaterMug", WaterMug);

            /*Fish = new RecipeGroup(() =>
            $"{Language.GetTextValue("LegacyMisc.37")} " + $"{Lang.GetItemNameValue(ModContent.ItemType<ArmoredCavefish>())}",
            ModContent.ItemType<ArmoredCavefish>(),
            ModContent.ItemType<AtlanticCod>(),
            ModContent.ItemType<Bass>(),
            ModContent.ItemType<ChaosFish>(),
            ModContent.ItemType<CrimsonTigerfish>(),
            ModContent.ItemType<Damselfish>(),
            ModContent.ItemType<DoubleCod>(),
            ModContent.ItemType<Ebonkoi>(),
            ModContent.ItemType<FlarefinKoi>(),
            ModContent.ItemType<Flounder>(),
            ModContent.ItemType<FrostMinnow>(),
            ModContent.ItemType<GoldenCarp>(),
            ModContent.ItemType<Hemopiranha>(),
            ModContent.ItemType<NeonTetra>(),
            ModContent.ItemType<Obsidifish>(),
            ModContent.ItemType<PrincessFish>(),
            ModContent.ItemType<Prismite>(),
            ModContent.ItemType<RedSnapper>(),
            ModContent.ItemType<Salmon>(),
            ModContent.ItemType<SpecularFish>(),
            ModContent.ItemType<Stinkfish>(),
            ModContent.ItemType<Trout>(),
            ModContent.ItemType<Tuna>(),
            ModContent.ItemType<VariegatedLardfish>());
            RecipeGroup.RegisterGroup("RealOfTerraria:Fish", Fish);*/
        }
    }
}
